#ifndef FFMPEGUTILS_H
#define FFMPEGUTILS_H

#include <QDebug>

extern "C" {

    #include <libavcodec/avcodec.h>
    #include <libavutil/avutil.h>
}


#define MSGERR(num) char errBuf[1024]; \
    av_strerror(num,errBuf,sizeof(errBuf));

struct PCMSpec{

    int sampleRate;
    AVSampleFormat sampleFormat;
    int channelLayout;
    char* inPath;
    char* outPath;
};




class FFMPEGUtils
{
public:
    FFMPEGUtils();
    static void pcmAACDecode(PCMSpec& pcmSpec);
};

#endif // FFMPEGUTILS_H
